import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { BaseEntity } from './BaseEntity'
import { DateEntity } from './DateEntity'

@Entity({ name: 't_comment' })
export class Comment extends BaseEntity {
  // 用户ID
  @Column({ type: 'integer' })
  userId: number

  // 评论内容
  @Column({ type: 'text' })
  content: string

  @Column((type) => DateEntity)
  '': DateEntity
}
